package com.service;

import com.pojo.Address;

import java.util.List;

//import com.pojo.Users;

public interface AddressService {
    //查询所有地址
    public List<Address> findAllByUid(Integer uId);
    //修改单个地址
    public boolean update(Address address);
    //删除
    public boolean delete(Integer id);
    //添加
    public boolean add(Address address);
    //修改为默认地址
    public boolean updatedefault(Integer uid,Integer id);
    //修改已经是默认地址为不默认
    public boolean updateondefault(Integer id);
}
